package cn.est.service;

import cn.est.exceptions.RedisException;
import cn.est.exceptions.TokenProtectedException;
import cn.est.pojo.Users;
import cn.est.vo.TokenVo;

public interface TokenService {

    public TokenVo genenrateToken(Users users);

    public TokenVo refreshToken(String oldToken) throws RedisException, TokenProtectedException;

    public void saveToken(String token, Users users);
}
